home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Sample Code / DTS QT Utilities.May-95 / Projects & Test Apps / QT Internals / Mac Framework / MacMain.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-30  |  1.0 KB  |  55 lines  |  [TEXT/MPCC]

  1. /*
  2.     File:        MovieShell.c
  3.  
  4.     Contains:    Simple Mac shell for testing QuickTime.
  5.  
  6.     Written by:    DTS
  7.  
  8.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.        <1>         12/20/94    khs        first file
  13.        
  14. */
  15.  
  16.  
  17. // INCLUDES
  18. #include <stdio.h>
  19. #include <sioux.h>
  20.  
  21. #include "DTSQTUtilities.h"
  22. #include "MacFramework.h"
  23.  
  24.  
  25. // ______________________________________________________________________
  26. // MAIN
  27. void main(void)
  28. {
  29.     OSErr anErr;
  30.  
  31. // This is for controlling the sioux window under Metrowerks (5.0 forward)
  32. #ifdef USESIOUX    
  33.     SIOUXSettings.initializeTB = false;
  34.     SIOUXSettings.setupmenus = false;
  35. #endif // USESIOUX
  36.  
  37.     InitStack(30000);
  38.     InitMacEnvironment(10L);                    // 10 * MoreMasters
  39.     InitMenubar();
  40.     
  41.     if( !QTUIsQuickTimeInstalled() )
  42.         ExitToShell();
  43.         
  44. #if powerc    
  45.     if( !QTUIsQuickTimeCFMInstalled() )
  46.         ExitToShell();                                // I could disable features as well.
  47. #endif 
  48.  
  49.     anErr = EnterMovies(); DebugAssert(anErr == noErr);
  50.     if(anErr != noErr)
  51.         ExitToShell();
  52.  
  53.     MainEventLoop();
  54. }
  55.